package cn.licoy.wdog.core.service.hospital;

import cn.licoy.wdog.core.dto.SignInDTO;
import cn.licoy.wdog.core.dto.hospitalUser.HospitalUserDto;
import cn.licoy.wdog.core.dto.hospitalUser.UpdateHouitalUserDto;
import cn.licoy.wdog.core.dto.hospitalUser.UpdatePasswordDto;
import cn.licoy.wdog.core.entity.hospital.HospitalUser;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author Sunne
 * Create time 2018/6/21 15:50
 * @return null
 **/
public interface HospitalUserService extends IService<HospitalUser> {
    /**
     * 用户登录操作
     * @param signInDTO 登录信息
     */
    HospitalUser signIn(SignInDTO signInDTO);

    /**
     * 添加用户
     * @param addDTO 用户数据DTO
     */
    HospitalUser add(HospitalUserDto addDTO);
    /**
     * 根据用户名查找用户
     * @param name 用户名
     * @return HospitalUser
     */
    HospitalUser findUserByName(String name,boolean hasResource);


    void updatePassword(UpdatePasswordDto updatePasswordDto);

    void updateUserinfo(UpdateHouitalUserDto UpdateHouitalUserDto);

    public HospitalUser findReginByUsername(String name);
    public HospitalUser getCurrentUser();
}
